package com.xjk.excel;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelField {

    String value() default "";
    String name() default "";
    int index() default 0;
    boolean ignore() default false;
}


@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@interface ExcelFiledStyle{
    int width() default 20;
    int height() default 20;
    short fontSize() default (short)12;
    String fontColor() default "#000000";
    String bgColor() default "#ffffff";
    String borderColor() default "#000000";
    String dateFormat() default "yyyy-MM-dd HH:mm:ss";
    String fontFamily() default "微软雅黑";
    TextAlignmentEnum alignHorizontal() default TextAlignmentEnum.CENTER;
    TextAlignmentEnum alignVertically() default TextAlignmentEnum.CENTER;
    BorderStyleEnum borderStyle() default BorderStyleEnum.THIN;
}

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@interface ExcelTable {

    String sheetName() default "";

    SheetTypeEnum sheetType() default SheetTypeEnum.XLSX;
}